<?php
    use yii\helpers\Url;
?>
<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>铝邦CRM客户管理系统</title>
    <link rel="stylesheet" href="bootstrap/css/bootstrap.min.css"/>
    <link rel="stylesheet" href="css/common.css"/>
    <link rel="stylesheet" href="css/public.css"/>
    <link rel="stylesheet" href="css/setting.css"/>
    <script src="js/jquery-1.12.3.min.js"></script>
    <script src="bootstrap/js/bootstrap.min.js"></script>
</head>
<body class="body-set">
<nav class="navbar navbar-default navbar-fixed-top nav-top-title">
    <!--小屏幕导航按钮和logo-->
    <div class="navbar-header nav-head">
        <a href="#" class="navbar-brand"></a>
        <h4>客户管理系统</h4>
        <p>Client Management System</p>
    </div>
    <!--小屏幕导航按钮和logo-->
    <!--导航-->
    <div class="navbar-collapse collapse ">
        <ul class="nav navbar-nav navbar-right nav-right">
            <li class="user-center">
                <a href="<?=Url::toRoute(['admin/index'])?>"><span class="glyphicon glyphicon glyphicon-home"></span></a>
            </li>
            <li>
                <a href="login.html">安全退出</a>
            </li>
        </ul>
    </div>
</nav>
<div class="menu-left col-sm-1 pull-left">
    <div class="work-list set-list">
        <ul>
            <li class="sys-set work-on">系统设置</li>
            <li class="bar-list set-on"><a href="<?=Url::toRoute(['system/departments-list'])?>" target="Myiframe">部门列表</a></li>
            <li class="use-list"><a href="<?=Url::toRoute(['system/roles-list'])?>" target="Myiframe">角色列表</a></li>
            <li class="emp-set"><a href="<?=Url::toRoute(['system/user-list'])?>" target="Myiframe">员工列表</a></li>
            <li class="cus-set work-on">自定义设置</li>
            <li class="para-set"><a href="<?=Url::toRoute(['params/params'])?>" target="Myiframe">参数设置</a></li>
            <li class="sec-set work-on">安全设置</li>
            <li class="ope-log"><a href="<?=Url::toRoute(['operation-log/index'])?>" target="Myiframe">操作日志</a></li>
        </ul>
    </div>
    <script>
        $(function () {
            $(".set-list ul li").click(function () {
                var index = $(this).index();
                if(index == 0 || index == 4 || index == 6){
                }else{
                    $(this).siblings().removeClass("set-on");
                    $(this).addClass("set-on");
                }
            })
        })
    </script>
</div>
<div class="menu-right col-sm-11 pull-right">
    <iframe src="<?=Url::toRoute(['departments-list'])?>" frameborder="0" name="Myiframe" class="myframe"></iframe>
</div>
</body>
</html>